﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using example1.Models.Home;

namespace example1.Controllers
{
    public class HomeController : Controller
    {
        //
        // GET: /Home/

        public ActionResult Index()
        {
            var model = new IndexViewModel();
            model.MobileInternetDevices = new List<MobileInternetViewModel>(   ) { new MobileInternetViewModel() {GsmNr = "1234" , ImeiNr = "9999" , Brand = "Nokia"},
            new MobileInternetViewModel() {GsmNr = "5678" , ImeiNr = "9999" , Brand = "Ericson"}};
            return View(model);
        }

        [HttpPost]
        public ActionResult Index(IndexViewModel indexViewModel)
        {
            return RedirectToAction("index");
        }
    }
}
